// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Xpack;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Xpack.Json.AnalyticsStatisticsConverter))]
public sealed partial class AnalyticsStatistics
{
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	public AnalyticsStatistics(long boxplotUsage, long cumulativeCardinalityUsage, long movingPercentilesUsage, long normalizeUsage, long rateUsage, long stringStatsUsage, long topMetricsUsage, long tTestUsage)
	{
		BoxplotUsage = boxplotUsage;
		CumulativeCardinalityUsage = cumulativeCardinalityUsage;
		MovingPercentilesUsage = movingPercentilesUsage;
		NormalizeUsage = normalizeUsage;
		RateUsage = rateUsage;
		StringStatsUsage = stringStatsUsage;
		TopMetricsUsage = topMetricsUsage;
		TTestUsage = tTestUsage;
	}
#if NET7_0_OR_GREATER
	public AnalyticsStatistics()
	{
	}
#endif
#if !NET7_0_OR_GREATER
	[System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
	public AnalyticsStatistics()
	{
	}
#endif
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	internal AnalyticsStatistics(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
	{
		_ = sentinel;
	}

	public
#if NET7_0_OR_GREATER
	required
#endif
	long BoxplotUsage { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long CumulativeCardinalityUsage { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long MovingPercentilesUsage { get; set; }
	public long? MultiTermsUsage { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long NormalizeUsage { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long RateUsage { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long StringStatsUsage { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long TopMetricsUsage { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long TTestUsage { get; set; }
}